package com.gimi.cloud.mmf.user.service.impl;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.gimi.cloud.mmf.common.utils.JsonUtil;
import com.gimi.cloud.mmf.user.common.reqhead.Util;
import com.gimi.cloud.mmf.user.feigin.TestUserFeigin;
import com.gimi.cloud.mmf.user.model.TestUserModel;
import com.gimi.cloud.mmf.user.service.TestUserService;

@Service
public class TestUserServiceImpl implements TestUserService{
	
	@Autowired TestUserFeigin testUserFeigin;
	
	@Override
	public void saveUser(String requestData, HttpServletResponse response, HttpServletRequest request) {
		TestUserModel model = JsonUtil.netJsonToBean(requestData, TestUserModel.class);
		String str = testUserFeigin.saveUser(model);
		Util.sendResponse(str, response);
	}

}
